package edu.scau.divineplace.entity.vo.commentscore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 对CommentScore进行查询时的结果对象，存储总评分及总打分人数
 * </p>
 *
 * @author x1aolone
 * @since 2020-12-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("CommentScoreTotalVO")
public class CommentScoreTotalVO {

    @ApiModelProperty("总评分")
    private Integer totalScore;

    @ApiModelProperty("总打分人数")
    private Integer totalScorePeople;

    public static CommentScoreTotalVO empty () {
        return CommentScoreTotalVO.builder()
                .totalScore(0)
                .totalScorePeople(0)
                .build();
    }

}
